const {query} =require("../utils/fengzhuang")


function insert(message) {
    const sql = "insert into message (name,content) values (?,?)"
    const data = [message.name, message.content]
    return query(sql,data)
}

function list() {
    const sql = "select * from message"
    const data = []
    return query(sql, data)
} 


module.exports = {
    insert,
    list
}